package com.qigao.mall.api;

import com.github.pagehelper.PageInfo;
import com.qigao.mall.commons.dto.AccountInfoQueryDto;
import com.qigao.mall.commons.dto.AccountInfoResultDto;
import com.qigao.mall.commons.dto.SettleQueryDto;
import com.qigao.mall.commons.enums.AccountTypeEnum;
import com.qigao.mall.commons.enums.Result;
import com.qigao.mall.jdbc.model.TbAccountInfo;

import java.util.List;

/**
 * @author luiz
 * @Title: com.qigao.mall.api
 * @ProjectName three-mall
 * @date 2020-04-2020/4/10 14:32
 * @Description:
 */
public interface AccountInfoService {

    TbAccountInfo saveUserAccount(String userId, AccountTypeEnum accountTypeEnum);

    TbAccountInfo saveMerAccount(String merNo, AccountTypeEnum accountTypeEnum);

    Result<PageInfo<AccountInfoResultDto>> listPage(AccountInfoQueryDto settleQueryDto);

    List<AccountInfoResultDto> findOrderResultByCond(AccountInfoQueryDto accountInfoQueryDto);

    Result<AccountInfoResultDto> findAccountByUserNo(String userNo);

    Result<AccountInfoResultDto> findScoreAccount(String userNo);

    Result<AccountInfoResultDto> findAccountByType(String userNo, String accountType);
}
